import 'dart:io';

import 'package:al_pay_flutter/pages/index/home_layout.dart';
import 'package:al_pay_flutter/pages/untils/screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

// import 'package:disable_screenshots/disable_screenshots.dart';
// final hansome = '%E5%8B%BF%E7%94%A8%E4%BA%8E%E9%9D%9E%E6%B3%95%E7%94%A8%E9%80%94%2C%E9%A1%B5%E9%9D%A2%E9%80%90%E6%B8%90%E5%AE%8C%E5%96%84%E4%B8%AD';
void main() {
  runApp(MyApp());
  if (Platform.isAndroid) {
    SystemChrome.setSystemUIOverlayStyle(
        SystemUiOverlayStyle(statusBarColor: Colors.transparent));
  }else{
    SystemChrome.setSystemUIOverlayStyle(
        SystemUiOverlayStyle(statusBarColor: Colors.white));

  }
}
class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  //  DisableScreenshots _plugin = DisableScreenshots();
  
  @override
  void didChangeDependencies() {
    // TODO: implement didChangeDependencies
    super.didChangeDependencies();
    // _plugin.addWatermark(this.context, Uri.decodeComponent(hansome));

  }
  
  @override
   Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primaryColor: Color(0xff3c82cb),
        fontFamily: 'PingFangSC-Regular',
        scaffoldBackgroundColor: Color(0xfff5f5f5),
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomeLayout(),
    );
  }
}

